import request from '@/api/request'
import request1 from '@/api/request1'
import Qs from 'qs'
export function weChatLogin(data) {
  return request1({
    url: '/e/get/wechat/login/auth',
    method: 'get',
    sync:true,
    data: data
  })
}
export function weChatUnbind(data) {
  return request({
    url: '/third/unbind/wechat',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function userInfo(data) {
  return request({
    url: '/api/user/info',
    method: 'get',
    sync:true,
    data: data
  })
}
export function userEdit(data) {
  return request({
    url: '/api/user/profile',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function upavatar(data) {
  return request({
    url: '/api/user/upavatar',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}


export function userLogout(data) {
  return request({
    url: '/api/user/logout',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function subscribe_email(data) {
  return request({
    url: '/addons/ldcms/api.v1/diyform/type/subscribe_email',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function messageAdd(data) {
  return request({
    url: '/addons/ldcms/api.v1/diyform/type/message',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function getCategoryList(data) {
  return request({
    url: '/addons/ldcms/api.v1/category',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function getCloumnList(data) {
  return request({
    url: '/addons/ldcms/api.v1/category_list',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function getArticleLists(data) {
  return request({
    url: '/addons/ldcms/api.v1/lists',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function getArticleIinfo(data) {
  return request({
    url: '/addons/ldcms/api.v1/detail',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function manufacturerList(data) {
  return request({
    url: '/api/hkpma/manufacturer',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function productsList(data) {
  return request({
    url: '/api/hkpma/products',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}


export function productsInfo(data) {
  return request({
    url: '/api/hkpma/product_detail',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function legal_classifical(data) {
  return request({
    url: '/api/hkpma/legal_classifical',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function certificate_holder(data) {
  return request({
    url: '/api/hkpma/certificate_holder',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function apiList(data) {
  return request({
    url: '/api/hkpma/api',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}


export function apiInfo(data) {
  return request({
    url: '/api/hkpma/api_detail',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function filter_atc_code(data) {
  return request({
    url: '/api/hkpma/filter_atc_code',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function filter_manufacturers(data) {
  return request({
    url: '/api/hkpma/filter_manufacturers',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function riskmatrix_search_product(data) {
  return request({
    url: '/api/hkpma/riskmatrix_search_product',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}


export function userRegister(data) {
  return request({
    url: '/api/user/register',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function emsSend(data) {
  return request({
    url: '/api/ems/send',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function uploadimage(data) {
  return request({
    url: '/api/user/uploadimage',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function userLogin(data) {
  return request({
    url: '/api/user/login',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function index_statistics(data) {
  return request({
    url: '/api/hkpma/index_statistics',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function product_filters(data) {
  return request({
    url: '/api/hkpma/product_filters',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}


export function save_riskmatrix_data(data) {
  return request({
    url: '/api/hkpma/save_riskmatrix_data',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function resetpwd(data) {
  return request({
    url: '/api/user/resetpwd',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}
export function bot_chat(data) {
  return request({
    url: '/api/hkpma/bot_chat',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function manufacture_product_api(data) {
  return request({
    url: '/api/hkpma/manufacture_product_api',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function get_riskmatrix_data(data) {
  return request({
    url: '/api/hkpma/get_riskmatrix_data',
    method: 'get',
    sync:true,
    data: data
  })
}
export function hkpma_ext_study_specified_pde_list(data) {
  return request({
    url: '/addons/ldcms/api.v1/diyform/type/hkpma_ext_study_specified_pde_list',
    method: 'post',
    sync:true,
    data: data
  })
}

export function toxicity(data) {
  return request({
    url: '/api/hkpma/toxicity',
    method: 'get',
    sync:true,
    data: data
  })
}

export function study_specified_pde(data) {
  return request({
    url: '/api/hkpma/study_specified_pde',
    method: 'get',
    sync:true,
    data: data
  })
}

export function study_specified_pde_list(data) {
  return request({
    url: '/api/hkpma/study_specified_pde_list',
    method: 'get',
    sync:true,
    data: data
  })
}


export function apis_search_tips(data) {
  return request({
    url: '/api/hkpma/apis_search_tips',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}


export function product_search_tips(data) {
  return request({
    url: '/api/hkpma/product_search_tips',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function manufacturer_search_tips(data) {
  return request({
    url: '/api/hkpma/manufacturer_search_tips',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}

export function manufacturer_product_api_search_tips(data) {
  return request({
    url: '/api/hkpma/manufacturer_product_api_search_tips',
    method: 'post',
    sync:true,
    data: Qs.stringify(data)
  })
}